using System;
using System.Web;

namespace Dimok.User{

	////////////////////////////////////////////////////////////////////////////////////////////////////
	/// <summary>	Exception for signalling no applicant identifier errors. </summary>
	///
	/// <remarks>	Dimon, 12/21/2010. </remarks>
	////////////////////////////////////////////////////////////////////////////////////////////////////

	public class NoApplicantIDException : Exception{
		public NoApplicantIDException():base("RawUrl:"+HttpContext.Current.Request.RawUrl+Environment.NewLine+"Applicant ID is not provided."){}
	}

	////////////////////////////////////////////////////////////////////////////////////////////////////
	/// <summary>	Exception for signalling no menu identifier errors. </summary>
	///
	/// <remarks>	Dimon, 12/21/2010. </remarks>
	////////////////////////////////////////////////////////////////////////////////////////////////////

	public class NoMenuIDException:Exception{
		public NoMenuIDException(int applID):this(applID,""){}
		public NoMenuIDException(int applID,string message):
			base("\n"+message+"\nApplication \""+applID+"\" does not belong to any queue or you don't have an access to it."){}
	}
}
